<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <table>
        <tr>
            <th>ID</th>
            <th>名字</th>
            <th>性别</th>
            <th>电话</th>
        </tr>
        {foreach $list as $v}
        <tr>
            <td>{$v['id']}</td>
            <td>{$v['name']}</td>
            <td>
            {if $v['sex']==0} 女
            {elseif $v['sex']==1} 男
            {else} 保密
            {/if}
            </td>
            <td>{$v['tel']}</td>
        </tr>
        {/foreach}
    </table>
</body>
</html>